package com.dolphin.apiboss.service;

import com.dolphin.apiboss.remote.ServiceDriverUserClient;
import com.dolphin.common.dto.DriverUser;
import com.dolphin.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverUserService {

    @Autowired
    ServiceDriverUserClient serviceDriverUserClient;
    public ResponseResult addDriverUser(DriverUser driverUser) {

        ResponseResult responseResult = serviceDriverUserClient.addUser(driverUser);
        return responseResult;
    }

    public ResponseResult updateDriverUser(DriverUser driverUser) {
        ResponseResult responseResult = serviceDriverUserClient.updateUser(driverUser);
        return responseResult;
    }
}
